import request from '@/utils/request'

// 查询查询工序列表
export function getCraftInfoListApi(query) {
  return request({
    url: "/business/craftInfo/list",
    method: "GET",
    params: query,
  });
}

// 查询查询工序所有列表
export function getAllCraftInfoListApi() {
  return request({
    url: "/business/craftInfo/listAll",
    method: "GET",
  });
}

// 删除产品
export function deleteCraftInfoApi(pkProProducts) {
  return request({
    url: "/business/craftInfo/remove/" + pkProProducts,
    method: "GET",
  });
}

// 导出工序列表
export function exportCraftInfoApi(data) {
  return request({
    url: "/business/craftInfo/export",
    method: "post",
    data,
  });
}

// 新增工序
export function addCraftInfoApi(data) {
  return request({
    url: "/business/craftInfo/add",
    method: "post",
    data,
  });
}

// 修改工序
export function updateCraftInfoApi(data) {
  return request({
    url: "/business/craftInfo/update",
    method: "post",
    data,
  });
}